package cn.tm.liu.mode.command.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 14.16
 */
public class Main {
    public static void main(String[] args) {
        BuyStock buyStock = new BuyStock(new Stock("Book", 100));
        SellStock sellBook = new SellStock(new Stock("Book", 30));
        SellStock sellStock = new SellStock(new Stock("Pencil", 50));
        Broker broker = new Broker();
        broker.takeOrder(buyStock);
        broker.takeOrder(sellBook);
        broker.takeOrder(sellStock);
        broker.placeOrders();
    }
}
